/**
* Description: 组织架构Api
*
* Created by hrx on 2023/10/8
*/
import service, {IResponseArrayDto, IResponseDto} from "@/utils/ajax";
import type {IBaseQueryDataListParams} from "@/api/index"
import {AxiosResponse} from "axios";

export interface leftTreeDTO {
  id?: number,
  hospitalAreaId?: number,
  name?: string,
  parentId?: number,
  children?: Array<leftTreeDTO>
}

// 左侧导航树
export function leftTreeApi(): Promise<AxiosResponse<IResponseDto<Array<leftTreeDTO>>>> {
  return service({
    url: '/cloud/dept/getDeptTreeByAllHospitalArea',
    method: "post",
    data: {},
    headers: {
      "showLoading": true
    },
  })
}